﻿using System;
using ProjScan.RecordManager.AssetData;
using ProjScan.ScanRule.Attr;
using UnityEngine;

namespace ProjScan.ScanRule.SceneCheck
{
	// Token: 0x020001A9 RID: 425
	[ScenesCheckRuleAttr]
	internal class Scene_CanvasChildren : SceneObjRecordRuleImp
	{
		// Token: 0x06000E58 RID: 3672 RVA: 0x000419A0 File Offset: 0x0003FBA0
		protected override bool IsOK(SceneObjAssetData assetData)
		{
			bool flag = assetData.gameObj.GetComponent<Canvas>() != null;
			bool result;
			if (flag)
			{
				RectTransform[] componentsInChildren = assetData.gameObj.GetComponentsInChildren<RectTransform>();
				result = (componentsInChildren == null || (float)componentsInChildren.Length <= this.GetThresholds(100f));
			}
			else
			{
				result = true;
			}
			return result;
		}
	}
}
